To attach a behavior to a 
frame, drag it to a cell in the 
Script channel in the Score.